package com.insleton.admin.user.model;

import com.google.common.collect.Lists;

import java.util.List;

public class User {
    private Integer id;
    private String name;
    private String password;
    private Integer code = 1;
    private String accessToken;
    private String selectAccount;
    private String username;
    private String realName = "Vben";
    private boolean captcha;

    private List<String> roles;
    // 访问码
    String[] codes = new String[]{
            "AC_100100",
            "AC_100110",
            "AC_100120",
            "AC_100010"
    };
    private List<String> accessCodes = Lists.newArrayList(codes);

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getSelectAccount() {
        return selectAccount;
    }

    public void setSelectAccount(String selectAccount) {
        this.selectAccount = selectAccount;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public boolean isCaptcha() {
        return captcha;
    }

    public void setCaptcha(boolean captcha) {
        this.captcha = captcha;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public List<String> getRoles() {
        return roles;
    }

    public void setRoles(List<String> roles) {
        this.roles = roles;
    }

    public String[] getCodes() {
        return codes;
    }

    public void setCodes(String[] codes) {
        this.codes = codes;
    }

    public List<String> getAccessCodes() {
        return accessCodes;
    }

    public void setAccessCodes(List<String> accessCodes) {
        this.accessCodes = accessCodes;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }
}
